package org.jeecg.modules.charge.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.jeecg.common.aspect.annotation.Dict;
import org.jeecgframework.poi.excel.annotation.Excel;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;

@Data
public class ChargeSubjectsTree implements Serializable {
	private static final long serialVersionUID = 1L;

	private String id;

	private String subjectsCode;

	private String parentCode;

	private String subjectName;

	private String delFlag;

	private String createBy;

	private Date createTime;

	private String updateBy;

	private Date updateTime;

	//----------新加-------------------
	private String key;

	private String value;

	private String title;

	private List<ChargeSubjectsTree> children;
	public ChargeSubjectsTree(){}

	public ChargeSubjectsTree(ChargeSubjects subjects){
		this.key = subjects.getId();
		this.value = subjects.getId();
		this.title = subjects.getSubjectsCode()+"|"+subjects.getSubjectsName();
		this.id = subjects.getId();
		this.parentCode = subjects.getParentCode();
		this.subjectName = subjects.getSubjectsName();
		this.delFlag = subjects.getDelFlag();
		this.createBy = subjects.getCreateBy();
		this.createTime = subjects.getCreateTime();
		this.updateBy = subjects.getUpdateBy();
		this.updateTime = subjects.getUpdateTime();
	}

}
